<?php
	$curl = curl_init("http://a.app.qq.com/o/simple.jsp?pkgname=com.nlwl.repaircar");
	$header = array('User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36');
	// 第二步：没有需要设置的选项可省略不写
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
	curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
	// "apkUrl":"http:// ","lang":;
	// 第三步：执行curl
	$res = curl_exec($curl);

	// 第四步：关闭curl资源
	curl_close($curl);
	preg_match_all('/\"apkUrl\"\:\"http\:\/\/.*\"\,\"lang\"\:\"/', $res, $str);
	$mystr = str_replace('"apkUrl":"', '', $str['0']);
	$strurl = str_replace('","lang":"', '', $mystr);
	var_dump($strurl);


	